package com.hangsu.train.components.convert;

import com.hangsu.train.components.entity.Role;
import com.hangsu.train.components.params.RoleAddParam;
import com.hangsu.train.components.params.RoleSearchParam;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface RoleConvert {

    /**
     * RoleReqDto to Role
     *
     * @param reqDto
     * @return
     */
    Role convert(RoleAddParam reqDto);

    /**
     *  RoleSearchParam to Role
     *
     * @param param
     * @return
     */
    Role convert(RoleSearchParam param);

}
